package Day6Zuoye.Circle;

public class Circular extends Image {
    public static double π=3.14;
    int banjing;

    public Circular(int banjing) {
        this.banjing = banjing;
    }

    public double area(){
        double result = 0.0;
        result = banjing*banjing*π ;
        System.out.println("面积是"+result);
        return result;
    }

    @Override
    public double perimeter(){
        double result = 0.0;
        result = banjing*2*π;
        System.out.println("周长是"+result);
        return result;
    }
}
